/*************************************************
Author: will
Date: 8/9/2013
Description:
Notes: 
*************************************************/

#ifndef __CNewbieTaskMgr_h__
#define __CNewbieTaskMgr_h__

#include "commclass.h"
#include "CNewbieTaskConfig.h"
#include "CActMgr.h"
#include "MsgNoviceTask.pb.h"

class CNewbieTaskMgr
{
public:
    CNewbieTaskMgr()
    {

    }

    int InitTask(CNewbieTaskUserData& stTaskData, unsigned int uiGID, int iRegisterTime);

    int GetTaskBonus(CNewbieTaskUserData& stTaskData, unsigned int uiGID, int iTaskID, MsgAnsNoviceTask& stAns);
    int GetDayBonus(CNewbieTaskUserData& stTaskData, unsigned int uiGID, int iDay, MsgAnsNoviceTask& stAns);

    int Trigger(CNewbieTaskUserData& stTaskData, unsigned int uiGID, int iCondID, int iData);

    void GetTaskInfo(CNewbieTaskUserData& stTaskData, unsigned int uiGID, MsgAnsNoviceTask& stAns);
    void SendTaskInfo(CNewbieTaskUserData& stTaskData, unsigned int uiGID);

private:
    void UpdateData(unsigned int uiGID);
};


#endif // __CNewbieTaskMgr_h__

